package com.atguigu.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author ShiJieLin
 * @Date 2022/4/20 20:59
 * @Version 1.0
 */
@Configuration
public class GuliMallWebConfig implements WebMvcConfigurer {

    /** 配置视图跳转页面
     * @param registry
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {

//        registry.addViewController("/login.html").setViewName("login");

        registry.addViewController("reg.html").setViewName("reg");
    }
}
